package edu.sctu.xuping.month05.day2;

/**
 * Created by Administrator on 2015/5/11.
 */
public class TextFour {
 public TextThree[] array;
    public TextFour(TextThree[] array){
        this.array=array;

        }


public void getInformation() {
    for (int i = 0; i < array.length; i++) {
        if (array[i].getAge() > 18) {
            System.out.println("hao");
        }
    }

}}
